#pragma once

#include <event2/event.h>

class XTask {
public:
    struct event_base *base = nullptr;
    int sock = 0;
    int thread_id = 0;
    // 初始化任务
    virtual bool Init() = 0;
};

